# Contributor: Daniel Santana <daniel@santana.tech>
# Maintainer: Daniel Santana <daniel@santana.tech>
pkgname=pdfjs
pkgver=2.6.347
pkgrel=0
pkgdesc="General-purpose, web standards-based platform for parsing and rendering PDFs"
url="https://mozilla.github.io/pdf.js/"
arch="noarch"
license="Apache-2.0"
subpackages="$pkgname-doc"
source="https://github.com/mozilla/pdf.js/releases/download/v2.6.347/pdfjs-$pkgver-dist.zip"
options="!check" # No tests

package() {
	mkdir -p "$pkgdir/usr/share/pdf.js" "$pkgdir/usr/share/licenses/pdf.js"
	cp "$srcdir"/LICENSE "$pkgdir/usr/share/licenses/pdf.js"
	cp -R "$srcdir"/build "$pkgdir/usr/share/pdf.js"
	cp -R "$srcdir"/web "$pkgdir/usr/share/pdf.js"
}

sha512sums="17e5d9b90746db71ab22366e5c1204a4dd1410c0b32822f9ba52d6d5966265792dbdf5050bd2ad072647100f69413fe46fda216b2f7b269d33a3aec570a913cd  pdfjs-2.6.347-dist.zip"
